package cn.gdchent.springbootsecurity.utils;

import java.io.Closeable;
import java.io.IOException;

public class ClosableUtil {

    public static void close(Closeable... closeables) {
        if (closeables == null || closeables.length == 0) return;
        for (Closeable closeable : closeables) {
            if (closeable != null) {
                try {
                    closeable.close();
                } catch (IOException ignore) {}
            }
        }
    }
}
